package com.aaa.mapper;

import com.aaa.entity.OmsCartItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CartMapper extends BaseMapper<OmsCartItem> {
    List<Map<String, Object>> selectCart(String userid);

    Integer addCart(@Param("id") Integer id,@Param("price") String price,
                    @Param("name") String name,@Param("create_date") String create_date,
                    @Param("user_id")String user_id,@Param("num")String num);

    Integer removeProductById(@Param("userid") String userid,@Param("id") String id);
}
